package com.starhub.domain.annotate.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.starhub.common.bean.ResultResp;
import com.starhub.domain.annotate.dto.DataAnnotateRequest;
import com.starhub.domain.annotate.service.DataAnnotateService;

import lombok.extern.slf4j.Slf4j;

/**
 * 数据标注接口
 * @version: V1.0
 * @author: liuhf
 * @time 2025-06-22
 */
@Slf4j
@RestController
@RequestMapping("/api/starhub/dataAnnotate")
public class DataAnnotateController {

    @Autowired
    private DataAnnotateService dataAnnotateService;

    @PostMapping("/auto")
    public ResultResp<Boolean> autoAnnotation(@RequestBody DataAnnotateRequest dataAnnotateRequest) {
        return ResultResp.success(dataAnnotateService.autoAnnotation(dataAnnotateRequest));
    }
}
